{{/*
  Copyright 2011 Google Inc. All Rights Reserved.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/}}

{{template "_top.html" "Activities.Get"}}
{{template "_header.html" .user}}

<div id="main">
  <section id="introduction">
    <h1>Activities.Get</h1>
    <p>
      Using the Google+ APIs, you can fetch public activities by specifying
      their IDs:
      <code>
        activity, err := p.Activities.Get("z12gtjhq3qn2xxl2o224exwiqruvtda0i").Do()
      </code>
    </p>
    <p>
      The user doesn't have to authorize your application in order to fetch
      public activities. Your app simply specifies the activity ID and your API
      key. The source code for this application can show you how.
    </p>
  </section>

  <div class="example">
    <h2>Example</h2>
    <article class="activity">
      <header>
          By <a href="{{.activity.Actor.Url | html}}"><strong>{{.activity.Actor.DisplayName | html}}</strong></a>
          (<a href="{{.activity.Url | html}}">view in Google+</a>)
      </header>
      <p class="content">{{.activity.Object.Content | html}}</p>
      {{$attachment := index .activity.Object.Attachments 0}}
      <iframe class="attachment" src="{{$attachment.Embed.Url | html}}" width="640" height="385" frameborder="0" />
    </article>
  </div>
</div>

{{template "_bottom.html"}}

